home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / bubble_elements.swf / scripts / DefineButton2_33 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-03-20  |  669 b   |  31 lines

  1. on(release){
  2.    if(this.pn3.text != "")
  3.    {
  4.       _root.playerName = this.pn3.text;
  5.       _root.saveAll(_root.playerName,_root.CNT);
  6.       if(_root.inten)
  7.       {
  8.          if(_root.myMode == _root.ModeItemsToSelect[1])
  9.          {
  10.             if(_root.myDiff == "STAGE 1")
  11.             {
  12.                _root.showtopten("backtomain");
  13.             }
  14.             else
  15.             {
  16.                _root.showtopten("nextlevel");
  17.             }
  18.          }
  19.          else
  20.          {
  21.             _root.showtopten();
  22.          }
  23.       }
  24.       else
  25.       {
  26.          _root.StartGame(_root.myMode,_root.myDiff);
  27.       }
  28.    }
  29.    removeMovieClip(this);
  30. }
  31.